package com.wwdz.bigdata.flink;


import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.api.java.tuple.Tuple2;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
/**
 * @auther huidou
 * @time 2021/8/31 13:43
 * @description
 */
public class WordCout {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();

        env.fromElements(12,234,45).map(new MapFunction<Integer, Integer>() {
                    @Override
                    public Integer map(Integer value) throws Exception {
                        return value*2;
                    }
                })
                .print();

        env.execute();
    }
}
